!function(){"use strict";var e,t,r={17(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.FlagService=void 0;var n=r(455),o=r(456),a=function(){function e(){}return e.prototype.process=function(e,t,r,a){var i,c=[],l=[],s=[],u=[];t&&n.URLUtil.matchUrl(t.path)?i=e.product:n.URLUtil.matchUrl(a)&&(i=e.main),i&&(i.forEach(function(e){e===o.FlagType.imageLazyLoad&&c.push(e),e!==o.FlagType.title&&e!==o.FlagType.ogTitle&&e!==o.FlagType.ogSiteName||l.push(e),e!==o.FlagType.canonical&&e!==o.FlagType.ogUrl||s.push(e),e!==o.FlagType.ogDescription&&e!==o.FlagType.description||u.push(e)}),c.length>0&&this.imageLazyLoading(),l.length>0&&this.titleFlag(t,l,r),s.length>0&&this.urlFlag(t,s),u.length>0&&this.descriptionFlag(t,u,r.pageDesc))},e.prototype.imageLazyLoading=function(){document.querySelectorAll("img").forEach(function(e){e.setAttribute("loading","lazy")})},e.prototype.titleFlag=function(e,t,r){var a=e?e.productName:"",i=e&&n.URLUtil.matchUrl(e.path)?"".concat(a," | ").concat(r.brand):r.pageTitle,c=e&&n.URLUtil.matchUrl(e.path)?"".concat(a," | ").concat(r.brand):r.brand;i&&(t.includes(o.FlagType.title)&&this.appendTitle(i),t.includes(o.FlagType.ogTitle)&&this.appendOgTitle(i),t.includes(o.FlagType.ogSiteName)&&this.appendOgSiteName(c))},e.prototype.urlFlag=function(e,t){e&&e.productUrl&&(t.includes(o.FlagType.canonical)&&this.appendCanonical(e.productUrl),t.includes(o.FlagType.ogUrl)&&this.appendOgUrl(e.productUrl))},e.prototype.descriptionFlag=function(e,t,r){var a=e&&n.URLUtil.matchUrl(e.path)?e.productDesc:r;a&&(t.includes(o.FlagType.ogDescription)&&this.appendOgDescription(a),t.includes(o.FlagType.description)&&this.appendDescription(a))},e.prototype.makeScript=function(e,t){var r=document.createElement(e);return t&&Object.entries(t).forEach(function(e){var t=e[0],n=e[1];r.setAttribute(t,n)}),r},e.prototype.appendOgTitle=function(e){var t=document.querySelectorAll('meta[property="og:title"]');if(t&&t.length>0){for(var r=1;r0){for(var r=1;r0){for(var r=1;r0){for(var r=1;r0){for(var r=1;r0){for(var r=1;r0){for(var r=1;r0?l:void 0)}catch(e){var u={id:n,key:r,url:window.location.href,error:e};return void(new i.Telegram).sendMessage("AttributionScraper error",u)}},t.prototype.attributionScraper=function(t,r,n,o,a,i){var s;return r&&t.attrName&&(s=r.getAttribute(t.attrName),"src"===t.attrName&&(s=l.URLUtil.checkProtocal(s)),s&&t.postprocess&&(s=e.prototype.postProcess.call(this,t,s,n))),!s&&t.fallback&&(s=e.prototype.fallback.call(this,t,n,a,i,o)),s||(s=n[a]),s?c.StringUtil.cleanWhiteSpace(s):s},t}(a.CommonScraper);t.AttributionScraper=s},56(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScriptDefaultScraper=void 0;var a=r(917),i=r(870),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.process=function(t,r,n,o,a){try{var c=t.target.split("."),l=void 0;if("defaults"===c[0]){l=r;for(var s=1;s0?l:void 0):(t[r]&&l.push(),l.length>0?l:void 0)}catch(e){var u={id:n,key:r,url:window.location.href,error:e};return void(new i.Telegram).sendMessage("TextScraper error",u)}},t.prototype.textScraper=function(t,r,n,o,a,i){var l;return r&&(l=r.textContent)&&t.postprocess&&(l=e.prototype.postProcess.call(this,t,l,n)),!l&&t.fallback&&(l=e.prototype.fallback.call(this,t,n,a,i,o)),l||(l=n[a]),l?c.StringUtil.cleanWhiteSpace(l):l},t}(a.CommonScraper);t.TextScraper=l},163(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.PlatformUtil=void 0;var r=function(){function e(){}return e.isMobile=function(){return new RegExp(this.platformRegEx).test(navigator.userAgent)},e.isWeb=function(){return!this.isMobile()},e.platformRegEx=/Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i,e}();t.PlatformUtil=r},309(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function c(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,c)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&(P[E]=U),o.label=11;case 11:return T++,[3,5];case 12:Object.assign(w,P),y["@graph"].push(w),o.label=13;case 13:return g++,[3,3];case 14:return 0===y["@graph"].length?[2]:((I=document.querySelectorAll("script#tuneLD[type='application/ld+json']"))&&I.length>0&&I.forEach(function(e){return e.remove()}),(G=document.createElement("script")).type="application/ld+json",G.id="tuneLD",G.text=JSON.stringify(y),document.head.appendChild(G),[3,16]);case 15:return N=o.sent(),(new f.Telegram).sendMessage("ldData make error",{id:this.id,url:window.location.href,error:N}),[3,16];case 16:return[2]}})})},e.prototype.getProductInfo=function(e,t){var r=this,n={path:e.path};if(u.URLUtil.matchUrl(e.path)){var o=new p.ScraperFactory;Object.entries(e).forEach(function(e){var a=e[0],i=e[1];if("path"!==a){var c=o.createFactory(i.method);c&&(n[a]=c.process(i,t,a,r.id))}})}return n},e.prototype.getExtractData=function(e,t,r){var n=this,o={};return Object.entries(e).forEach(function(e){var a=e[0],i=e[1],c=n.findData(i,t,r,a);!c||Array.isArray(c)&&0===c.length||(n.isRepeaterType(i)?o=c:o[a]=c)}),o},e.prototype.findData=function(e,t,r,n){var o=this;if(this.isTargetType(e)){var a=(new p.ScraperFactory).createFactory(e.method);if(!a)return;return a.process(e,t,n,this.id,r)}if(this.isRepeaterType(e)){var i=(new h.RepeaterScraper).process(e,t,this.id,r);return i&&i.length>0?i:void 0}if(this.isLdInfo(e)){var c={};return Object.entries(e).forEach(function(e){var n=e[0],a=e[1],i=o.findData(a,t,r,n);i&&(c[n]=i)}),c}if(this.isNestedSelector(e)){var l={};Object.entries(e).forEach(function(e){var n=e[0],a=e[1];l[n]="selectors"===n?o.findData(a,t,r,n):a})}},e.prototype.isTargetType=function(e){return e&&"object"==typeof e&&"method"in e&&"target"in e},e.prototype.isRepeaterType=function(e){return e&&("zip_by_index"===e.type||"fixed_list"===e.type)},e.prototype.isLdInfo=function(e){return e&&"object"==typeof e&&"path"in e&&"id_suffix"in e},e.prototype.isNestedSelector=function(e){return e&&"object"==typeof e&&"@type"in e&&"selectors"in e},e.prototype.errorHandle=function(e,t){(new f.Telegram).sendMessage(e,{id:this.id,error:t})},e.prototype.intervalReview=function(e,t,r){return n(this,arguments,Promise,function(e,t,r,n,a){var i=this;return void 0===n&&(n=200),void 0===a&&(a=10),o(this,function(o){return[2,new Promise(function(o){var c=0,l=window.setInterval(function(){var n=i.getExtractData(e.selectors,t,r);n&&e["@type"]&&(n["@type"]=e["@type"]),(n&&Object.keys(n).length>0||c>=a)&&(window.clearInterval(l),o(n)),c++},n)})]})})},e}();t.GeoService=y},319(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.TelegramMessage=void 0;var n=r(361),o=function(){function e(){this.newLine="\n",this._buffer=[]}return e.prototype.title=function(e){var t=n.TelegramMessageFormatter.bold("[".concat(e,"]"));return this._buffer.push(t),this},e.prototype.content=function(e){var t;if(null==e)return this;var r=Object.entries(e).map(function(e){var t=e[0],r=e[1];return"".concat(n.TelegramMessageFormatter.bold(t)," : ").concat(r)});return(t=this._buffer).push.apply(t,r),this},e.prototype.addRow=function(e){return this._buffer.push(e),this},e.prototype.build=function(){return this._buffer.join(this.newLine)},e.prototype.reset=function(){this._buffer=[]},e}();t.TelegramMessage=o},361(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TelegramMessageFormatter=void 0;var r=function(){function e(){}return e.bold=function(e){return"".concat(e,"")},e.italic=function(e){return"".concat(e,"")},e.underline=function(e){return"".concat(e,"")},e.strike=function(e){return"".concat(e,"")},e.code=function(e){return"".concat(e,"")},e.block=function(e){return"
${text}
"},e.hyperlink=function(e){return'').concat(e,"")},e}();t.TelegramMessageFormatter=r},407(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0?[2,this.call(e,t,r,o-1)]:(s=l instanceof Error?{errorName:l.name,errorMessage:l.message,errorStack:l.stack}:{error:String(l)},u=n({url:e},s),r||(new i.Telegram).sendMessage("fetch error",u),[3,5]);case 5:return[2,null]}})})},e}();t.FetchService=c},455(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.URLUtil=void 0;var n=r(19),o=function(){function e(){}return e.matchUrl=function(e){if("string"==typeof e)return"ALL"===e;e:for(var t=0,r=e;t0&&p.every(function(e){return Array.isArray(e)&&e.length===p[0].length})){var f=Object.keys(s),h=s[f[0]].map(function(e,t){var r={};return f.forEach(function(e){r[e]=s[e][t]}),r});s[f[0]].forEach(function(r,n){var i=o.PostScraper.getInstance().process(a.PostScraperType.mapToSchema,h[n],t,e.mapToSchema);l.push(i)})}else{if(!e.fallback)return;s={},this.isFixedList(e.fallback.type)&&this.repeaterFixedList(e.fallback.items,t,r,c)}}0===Object.keys(s).length&&e.fallback&&this.isFixedList(e.fallback.type)&&(l=this.repeaterFixedList(e.fallback.items,t,r,c))}return this.isFixedList(e.type)&&(l=this.repeaterFixedList(e.items,t,r,c)),l}catch(e){var d={id:r,url:window.location.href,error:e};return void(new i.Telegram).sendMessage("RepeaterScraper error",d)}},e.prototype.repeaterFixedList=function(e,t,r,o){var a=[],i=new n.ScraperFactory;return Object.entries(e).forEach(function(e){e[0];var n=e[1],c={};Object.entries(n).forEach(function(e){var n=e[0],a=e[1];if(["string","number"].includes(typeof a))c[n]=a;else if(a&&"object"==typeof a){var l=i.createFactory(a.method);if(!l)return;c[n]=l.process(a,t,n,r,o)}}),a.push(c)}),a},e.prototype.isFixedList=function(e){return"fixed_list"===e},e}();t.RepeaterScraper=c},705(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberUtil=void 0;var r=function(){function e(){}return e.leftPad=function(e){var t=e.toString();return e<10&&e>=0&&(t="0"+e),t},e.leftPad3=function(e){var t=e.toString();return e<10&&e>=0?t="00"+e:e<100&&e>=10&&(t="0"+e),t},e}();t.NumberUtil=r},791(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.fetchOption=t.fetchOptionDefaultPost=t.fetchOptionDefaultGet=void 0,t.fetchOptionDefaultGet=function(){return{method:"GET"}},t.fetchOptionDefaultPost=function(e){return{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),signal:AbortSignal.timeout(3e3)}},t.fetchOption=function(e,t,r,n){return{method:e,headers:t,body:r,signal:AbortSignal.timeout(n)}}},870(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Telegram=void 0;var n=r(319),o=r(407),a=r(791),i=function(){function e(){this.token_id="8537573697:AAGX9KcOM8WXWxA93fiL0HcwlqCiN-S5YI0",this.chatId="-1003515682842",this.parseMode="HTML",this.telegramMessage=new n.TelegramMessage}return e.prototype.sendMessage=function(e,t){try{var r="https://api.telegram.org/bot".concat(this.token_id,"/sendMessage"),n=this.telegramMessage.title(e).content(t).build(),i={chat_id:this.chatId,parse_mode:this.parseMode,text:n,disable_web_page_preview:!0};(new o.FetchService).call(r,(0,a.fetchOptionDefaultPost)(i),!0),this.telegramMessage.reset()}catch(e){}},e}();t.Telegram=i},912(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.IndexScraper=void 0;var a=r(917),i=r(870),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.process=function(e,t,r,n,o){try{if("Y"!==e.multiple){var a=e.target&&document.querySelector(e.target)?0:void 0;return this.indexScraper(e,a,t,o,r,n)}var c=[],l=e.target?document.querySelectorAll(e.target):null;if(!l||l.length<0){var s=t[r];return s&&c.push(s),c.length>0?c:void 0}for(var u=0;u0?c:void 0}catch(e){var f={id:n,url:window.location.href,key:r,error:e};return void(new i.Telegram).sendMessage("IndexScraper error",f)}},t.prototype.indexScraper=function(t,r,n,o,a,i){var c=r;return(0===c||c)&&t.postprocess&&(c=e.prototype.postProcess.call(this,t,c,n)),!c&&t.fallback&&(c=e.prototype.fallback.call(this,t,n,a,i,o)),c||(c=n[a]),c},t}(a.CommonScraper);t.IndexScraper=c},917(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function c(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,c)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=t)&&(window.clearInterval(a),n(r)),o++},r)})]})})},e.prototype.findElementListInterval=function(e){return n(this,arguments,Promise,function(e,t,r){return void 0===t&&(t=10),void 0===r&&(r=200),o(this,function(r){return[2,new Promise(function(r){var n=window.setInterval(function(){var o=document.querySelectorAll(e);(o||0>=t)&&(window.clearInterval(n),r(o))})})]})})},e}();t.CommonScraper=c},999(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r